<?php 
    get_header();    
?>

    <div class="post">
        <?php
            while ( have_posts() ) : the_post();
        ?>
        
            <div class="container">
                <div class="row">
                    <div class="col-md-8 <?php post_class(); ?>" id="post-<?php the_ID(); ?>" >
                        <h2><?php the_title(); ?></h2><h5>访问次数：<?php the_views();?></h5>
                        <?php the_post_thumbnail('full',['class'=>'img-responsive']); ?>
                        <?php the_content(); ?>
                        <?php the_post_navigation(array(
                                    'prev_text'           => '<i class="fa fa-arrow-left" aria-hidden="true"></i><span>%title</span>',
                                    'next_text'           => '<span>%title</span><i class="fa fa-arrow-right" aria-hidden="true"></i>',
                                    'in_same_term'        => false,
                                ));
                        ?>
                        <?php wp_link_pages( ); ?>
                        <?php comments_template('./comments.php',true); ?>
                    </div>
                    <div class="col-md-4">
                        <ul id="sidebar">
                            <?php get_sidebar(); ?>
                        </ul>
                    </div>
                </div>
            </div>

        <?php 
            endwhile;
        ?>
        
    </div>

<?php 
    get_footer();
?>